exports.getCommonTasks = function () {
    var commonTasks = {

        //–––––––––––––––––––––––––––––––
        // META TASK
        //–––––––––––––––––––––––––––––––
        meta : {
            banner : '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= pkg.author %> - '
                + '<%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */'
        },


        //–––––––––––––––––––––––––––––––
        // CLEAN TASK
        //–––––––––––––––––––––––––––––––

        build: {
            src: ["dist/", "test/junit/"]
        },
        unusedCss: {
            src: ["dist/styles/main.css", "dist/styles/st.css"]
        },



        //–––––––––––––––––––––––––––––––
        // JSHINT TASK
        //–––––––––––––––––––––––––––––––
        jshint : {
            options : {
                curly : true,
                eqeqeq : true,
                immed : true,
                latedef : true,
                newcap : true,
                noarg : true,
                sub : true,
                undef : true,
                boss : true,
                eqnull : true,
                es5 : true
            },
            all : [ 'app/common/**/*.js', 'app/country/<%= projectCode %>/**/*.js' ]
        },


        //–––––––––––––––––––––––––––––––
        // SERVER TASK
        //–––––––––––––––––––––––––––––––
        server : {
            appName : 'breeze'
        },


        //–––––––––––––––––––––––––––––––
        // COMPASS TASK
        //–––––––––––––––––––––––––––––––
        compass : {
            all: {
                config: 'config.rb'
            }
        },

        //–––––––––––––––––––––––––––––––
        // COMPRESS TASK
        //–––––––––––––––––––––––––––––––
        compress : {
            main: {
                options: {
                    archive: 'release/breeze.zip'
                },
                files: [
                    {
                        expand: true,
                        cwd: 'dist/',
                        src: ['**/*'],
                        dest: '/'
                    }
                ]
            }
        },


        //–––––––––––––––––––––––––––––––
        // DATAURI TASK
        //–––––––––––––––––––––––––––––––
        dataUri: {
            dist: {
                src: ['dist/styles/*.css'],
                dest: 'dist/styles/',
                options: {
                    target: [
                        'dist/img/low-res/embeded/*.*',
                        'dist/img/high-res/embeded/*.*'
                    ],
                    fixDirLevel: true
                }
            }
        },


        //–––––––––––––––––––––––––––––––
        // IMAGEMIN TASK
        //–––––––––––––––––––––––––––––––
        imagemin: {
            img: {
                options: { optimizationLevel: 4 },
                files: [{
                    expand: true,
                    cwd: 'dist/',
                    src: '**/*.{png,jpg}',
                    dest: 'dist'
                }]
            }
        },


        //–––––––––––––––––––––––––––––––
        // WATCH TASK
        //–––––––––––––––––––––––––––––––
        watch : {
            files : [ 'app/**/*', 'test/**/*' ],
            tasks : [ 'default' ]
        },


        //–––––––––––––––––––––––––––––––
        // USED FOR CONCAT TASK
        //–––––––––––––––––––––––––––––––
        releaseDateCss: {
            src : 'dist/styles/main.css',
            dest : 'dist/styles/main_<%= releaseDate %>.css'
        },
        library : {
            src : [ 'libs/BrowserDetection.js',
                'libs/jquery-1.9.1.js',
                'libs/easyXDM.min.js',
                'libs/handlebars-1.0.0-rc.3.js',
                'libs/crypto/ccrypto.js',
                'libs/crypto/crypto-sha1.js',
                'libs/crypto/e2e.js',
                'libs/json2.js',
                'libs/spin.min.js',
                'libs/jquery.dateFormat-1.0.js',
                'libs/ember-v1.0.0-rc.1.min.js',
                'libs/require.js',
                'libs/moment_min.js',
                'libs/moment_en-gb.js'
            ],
            dest : 'dist/libs_<%=releaseDate%>.js'
        },


        //–––––––––––––––––––––––––––––––
        // USED FOR AGGREGATE TASK
        //–––––––––––––––––––––––––––––––
        main: {
            src: [
                'country/<%= projectCode %>/config_<%= projectCode %>.js',
                'common/*.js',
                'common/i18n/*.js',
                'common/core/**/*.js',
                'common/ws/*.js',
                'common/utils/*.js',
                'common/model/*.js',
                'common/api/api_remoteSettings.js',
                'common/api/api_user.js',
                'common/api/api_locate.js',
                'common/modules/about/**/*.js',
                'common/modules/help/**/*.js',
                'common/modules/locate/**/*.js',
                'common/modules/login/**/*.js',
                'common/modules/pre-login/**/*.js',
                'common/modules/post-login/**/*.js',
                'common/modules/logout/**/*.js',
                'common/modules/maintenance/**/*.js'
            ]
        },
        see: {
            src : [
                'common/api/*.js',
                'common/modules/see/**/*.js'
            ],
            exclude: [
                'api_remoteSettings.js',
                'api_user.js'
            ]
        },
        move: {
            src : [ 'common/modules/move/**/*.js' ]
        },
        profile: {
            src : [ 'common/modules/profile/**/*.js' ]
        },
        mailbox: {
            src : [ 'common/modules/mailbox/**/*.js' ]
        },


        //–––––––––––––––––––––––––––––––
        // USED FOR COPY TASK
        //–––––––––––––––––––––––––––––––
        common: {
            files: [
                {
                    expand: true,
                    cwd: 'app/',
                    src: ['**/index.html'],
                    dest: 'dist/'
                },
                {
                    expand: true,
                    cwd: 'libs/',
                    src: ['fastclick.js'],
                    dest: 'dist/'
                },
                {
                    expand: true,
                    cwd: 'app/common/non-supported/',
                    src: ['**'],
                    dest: 'dist/non-supported'
                },
                {
                    expand: true,
                    cwd: 'app/fonts/',
                    src: ['**'],
                    dest: 'dist/fonts/'
                },
                {
                    expand: true,
                    cwd: 'app/img/',
                    src: ['**/*'],
                    dest: 'dist/img/'
                }
            ]
        },


        //–––––––––––––––––––––––––––––––
        // USED FOR UGLIFY TASK
        //–––––––––––––––––––––––––––––––
        uglifyCommon: {
            files:{
                'dist/main_<%=releaseDate%>.js': 'dist/main_<%=releaseDate%>.js',
                'dist/move_<%=releaseDate%>.js': 'dist/move_<%=releaseDate%>.js',
                'dist/see_<%=releaseDate%>.js': 'dist/see_<%=releaseDate%>.js',
                'dist/mailbox_<%=releaseDate%>.js': 'dist/mailbox_<%=releaseDate%>.js',
                'dist/profile_<%=releaseDate%>.js': 'dist/profile_<%=releaseDate%>.js',
                'dist/templates_main_<%=releaseDate%>.js':'dist/templates_main_<%=releaseDate%>.js',
                'dist/templates_move_<%=releaseDate%>.js':'dist/templates_move_<%=releaseDate%>.js',
                'dist/templates_see_<%=releaseDate%>.js':'dist/templates_see_<%=releaseDate%>.js',
                'dist/templates_mailbox_<%=releaseDate%>.js' : 'dist/templates_mailbox_<%=releaseDate%>.js',
                'dist/templates_profile_<%=releaseDate%>.js' : 'dist/templates_profile_<%=releaseDate%>.js'
            }
        },


        //–––––––––––––––––––––––––––––––
        // USED FOR JASMINE TASK
        //–––––––––––––––––––––––––––––––
        srcJasmine:[
            'app/country/<%= projectCode %>/config_<%= projectCode %>.js',
            'app/common/utils/BreezeUtils.js',
            'app/common/app.js',
            'app/common/i18n/*.js',
            'app/common/core/**/*.js',
            'app/common/utils/*.js',
            'app/common/components/*.js',
            'app/common/appSession.js',
            'app/common/route.js',
            'app/common/ws/webService.js',
            'app/common/api/*.js',
            'app/common/model/*.js',
            'app/common/modules/**/*.js'
        ]


    };

    return commonTasks;
};